import { apiGetNoheader,apiPost } from "../utils/request";
 
export function getCode(){
    return new Promise((resolve,reject)=>{
        apiGetNoheader('/teas',{page:1}).then(res=>{
            resolve(res)
        }).catch(err=>{
            reject(err)
        })
    })
}
export function shan(query:any){
    return new Promise((resolve,reject)=>{
        apiPost(`/teas/${query}`,query).then(res=>{
            resolve(res)
        }).catch(err=>{
            reject(err)
        })
    })
}


